package com.novel.frame.wxl;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;

import com.novel.bean.Book;
import com.novel.db.BaseDao;
import com.novel.frame.lgw.Notice;
import com.novel.frame.lgw.NovelRead;
import com.novel.frame.lgw.StackRoom;
import com.novel.frame.lxf.FirstPage_Jpanel;
import com.novel.frame.lxf.Login_Panel;
import com.novel.frame.lxf.Register_Jpanel;
import com.novel.frame.yf.My_bookshelf;
import com.novel.frame.yf.Person_center;


public class RankingFrame extends JFrame{
	
	
	
	private JScrollPane sp_all;//总滚动面板
	
	private JPanel pl_All;//总面板
	
	private JPanel pl_north;//上部面板
	
	private JPanel pl_north_north;//上部固定面板上部
	private JLabel lb_Bokseagirls;//书海女生网
	private JLabel lb_BookSeaGirlNetPart;//书海女生网按钮隔开线
	private JLabel lb_BookSeaLiteratureNet;//书海文学网按钮
	private JLabel lb_BookSeaLiteratureNetPart;//书海文学网按钮隔开线
	private JLabel lb_BookSeaComicNet;//书海动漫网按钮
	private JLabel lb_register;//注册按钮
	private JLabel lb_registerPart;//注册按钮隔开线
	private JLabel lb_help;//帮助按钮
	private JLabel lb_helpPart;//帮助按钮隔开线
    private JLabel lb_north_login;//登录按钮
    private JLabel lb_north_loginPart;//登录按钮隔开线
    private JLabel lb_Client;//客户端按钮
    
    
	private JPanel pl_north_center;//上部固定面板中部
	private JLabel lb_shuhai;//书海标签
	private JLabel lb_resou;//热搜标签
	private JLabel lb_resou_msg1;//热搜第一条消息
	private JLabel lb_resou_msg2;//热搜第二条消息
	private JLabel lb_resou_msg3;//热搜第三条消息
	
	private JTextField tf_search;//搜索文本域
	private JLabel lb_search;//搜索按钮
	private JLabel lb_searchTips;//搜索提示
	private JLabel lb_Recharge;//充值
	private JLabel lb_WritersCenter;//作家中心按钮
	private JLabel lb_center_loginMail;//中部登录邮件图像
	private JLabel lb_center_loginHeadPicture;//中部登录头像
	
    private JPanel pl_north_south;//上部固定面板下部
   
    
    private JLabel lb_FirstPage;//首页按钮
    private JLabel lb_FirstPagePart;//首页按钮隔开线
    private JLabel lb_StackRoom;//书库按钮
    private JLabel lb_StackRoomPart;//书库按钮隔开线
    private JLabel lb_Ranking;//排行按钮
    private JLabel lb_RankingPart;//排行按钮隔开线
    private JLabel lb_IpSpecialArea;//IP专区按钮
    private JLabel lb_IpSpecialAreaPart;//IP专区按钮隔开线
    private JLabel lb_WriterWelfare;//作家福利按钮
    private JLabel lb_WriterWelfarePart;//作家福利按钮隔开线
    private JLabel lb_AnnounceInformation;//公告资讯按钮
    private JLabel lb_AnnounceInformationPart;//公告资讯按钮隔开线
    private JLabel lb_GirlSpecialArea;//女生专区按钮
    private JLabel lb_GirlSpecialAreaPart;//女生专区按钮隔开线
    private JLabel lb_MyBookShelf;//我的书架按钮
	
	private JPanel pl_center;//中部面板
	
	private JPanel pl_center_north;//中间上部面板
	
	private JPanel pl_center_south;//中间下部面板
	
	private JPanel pl_center_left;//中部左边面板
	
	private JPanel pl_center_right;//中部右边面板
	/*
	 * 排行面板    
	 */
    private JPanel pl_paihang;//排行面板
   
    private JPanel pl_fengshenbang;//封神榜面板
    private JPanel pl_fengshenbang_north;//封神榜上部
    private JPanel pl_fengshenbang_center;//封神榜中部
    private JLabel lb_fengshenbang_one_msg1;//封神榜第一个标签
    private JLabel lb_fengshenbang_one_image;//封神榜第一个标签的图片
    private JLabel lb_fengshenbang_one_msg2;//封神榜第二个标签
    private JLabel lb_fengshenbang_one_msg3;//封神榜第三个标签
    private JLabel lb_fengshenbang_one_msg4;//封神榜第四个标签
    private JLabel lb_fengshenbang_one_msg5;//封神榜第五个标签
    private JLabel lb_fengshenbang_one_msg6;//封神榜第六个标签
    private JLabel lb_fengshenbang_one_msg7;//封神榜第七个标签
    private JLabel lb_fengshenbang_one_msg8;//封神榜第八个标签
    private JLabel lb_fengshenbang_one_msg9;//封神榜第九个标签
    private JLabel lb_fengshenbang_one_msg10;//封神榜第十个标签
    
    private JLabel lb_fengshenbang_one;//第一条
    private JLabel lb_fengshenbang;//第一条
    private JLabel lb_fengshenbang_two;//第二条
    private JLabel lb_fengshenbang_three;//第三条
    private JLabel lb_fengshenbang_four;//第四条
    private JLabel lb_fengshenbang_five;//第五条
    private JLabel lb_fengshenbang_six;//第六条
    private JLabel lb_fengshenbang_seven;//第七条
    private JLabel lb_fengshenbang_eight;//第八条
    private JLabel lb_fengshenbang_nine;//第九条
    private JLabel lb_fengshenbang_ten;//第十条
    
    private JPanel pl_dianjibang;//点击榜面板
    
    private JPanel pl_dianjibang_north;//点击榜上部
    private JLabel lb_dianjibang_click;//点击榜标签
    private JLabel lb_dianjibang_year;//点击榜年标签
    private JLabel lb_dianjibang_month;//点击榜月标签
    private JLabel lb_dianjibang_day;//点击榜日标签
    
    private JPanel pl_dianjibang_center;
    private JLabel lb_dianjibang1;//点击榜1
    private JLabel lb_dianjibang2;//点击榜2
    private JLabel lb_dianjibang3;//点击榜3
    private JLabel lb_dianjibang4;//点击榜4
    private JLabel lb_dianjibang5;//点击榜5
    private JLabel lb_dianjibang6;//点击榜6
    private JLabel lb_dianjibang7;//点击榜7
    private JLabel lb_dianjibang8;//点击榜8
    private JLabel lb_dianjibang9;//点击榜9
    private JLabel lb_dianjibang10;//点击榜10

 
    private JPanel pl_shoucangbang;//收藏榜面板
    
    private JPanel pl_shoucangbang_north;//收藏帮上部
    
    private JPanel pl_shoucangbang_center;//收藏帮中间
    private JLabel lb_shouchangbang1;//收藏榜标签1
    private JLabel lb_shouchangbang2;//收藏榜标签2
    private JLabel lb_shouchangbang3;//收藏榜标签3
    private JLabel lb_shouchangbang4;//收藏榜标签4
    private JLabel lb_shouchangbang5;//收藏榜标签5
    private JLabel lb_shouchangbang6;//收藏榜标签6
    private JLabel lb_shouchangbang7;//收藏榜标签7
    private JLabel lb_shouchangbang8;//收藏榜标签8
    private JLabel lb_shouchangbang9;//收藏榜标签9
    private JLabel lb_shouchangbang10;//收藏榜标签10
    private JLabel lb_shoucangbang_week;//收藏榜周榜
    private JLabel lb_shoucangbang_month;//收藏榜月榜
    private JLabel lb_shoucangbang_all;//收藏榜总榜
    
    
    
    private JPanel pl_xiaoshoubang;//销售榜面板
    private JPanel pl_xiaoshoubang_north;//销售面板上部
    private JPanel pl_xiaoshoubang_center;//销售面板中部
    private JLabel lb_xiaoshoubang1;//销售榜标签1
    private JLabel lb_xiaoshoubang2;//销售榜标签2
    private JLabel lb_xiaoshoubang3;//销售榜标签3
    private JLabel lb_xiaoshoubang4;//销售榜标签4
    private JLabel lb_xiaoshoubang5;//销售榜标签5
    private JLabel lb_xiaoshoubang6;//销售榜标签6
    private JLabel lb_xiaoshoubang7;//销售榜标签7
    private JLabel lb_xiaoshoubang8;//销售榜标签8
    private JLabel lb_xiaoshoubang9;//销售榜标签9
    private JLabel lb_xiaoshoubang10;//销售榜标签10
    private JLabel lb_xiaoshoubang_week;//销售周榜
    private JLabel lb_xiaoshoubang_month;//销售月榜
    private JLabel lb_xiaoshoubang_all;//销售总榜
    

    private JPanel pl_gengxinbang;//更新榜面板
    private JPanel pl_gengxinbang_north;//更新榜上部
    private JPanel pl_gengxinbang_center;//更新榜中部
    private JLabel lb_gengxinbang1;//更新榜标签第一条
    private JLabel lb_gengxinbang2;//更新榜标签第二条
    private JLabel lb_gengxinbang3;//更新榜标签第三条
    private JLabel lb_gengxinbang4;//更新榜标签第四条
    private JLabel lb_gengxinbang5;//更新榜标签第五条
    private JLabel lb_gengxinbang6;//更新榜标签第六条
    private JLabel lb_gengxinbang7;//更新榜标签第七条
    private JLabel lb_gengxinbang8;//更新榜标签第八条
    private JLabel lb_gengxinbang9;//更新榜标签第九条
    private JLabel lb_gengxinbang10;//更新榜标签第十条
    private JLabel lb_gengxinbang_week;//更新榜周榜
    private JLabel lb_gengxinbang_month;//更新榜月榜
    private JLabel lb_gengxinbang_all;;//更新榜总榜
    
    
    private JPanel pl_tuijianbang;//推荐榜面板
    private JPanel pl_tuijianbang_north;//推荐榜上部面板
    private JPanel pl_tuijianbang_center;//推荐榜中部面板
    private JLabel lb_tuijianbang1;//推荐榜第一条
    private JLabel lb_tuijianbang2;//推荐榜第二条
    private JLabel lb_tuijianbang3;//推荐榜第三条
    private JLabel lb_tuijianbang4;//推荐榜第四条
    private JLabel lb_tuijianbang5;//推荐榜第五条
    private JLabel lb_tuijianbang6;//推荐榜第六条
    private JLabel lb_tuijianbang7;//推荐榜七条
    private JLabel lb_tuijianbang8;//推荐榜第八条
    private JLabel lb_tuijianbang9;//推荐榜第九条
    private JLabel lb_tuijianbang10;//推荐榜第十条
    private JLabel lb_tuijianbang_week;//推荐榜的周榜
    private JLabel lb_tuijianbang_month;//推荐榜的月榜
    private JLabel lb_tuijianbang_all;//推荐榜的总

    private JPanel pl_south;//南部面板
    private JLabel lb_southimg;//南部图片
		
	private int ScreenWidth;//获取屏幕宽度
	private int ScreenHeight;//获取屏幕高度
	 /*
	 * 中部面板以及中部切换面板：首页、排行、登录、我的书库、注册
	 */
	private BaseDao baseDao = new BaseDao();
	public RankingFrame(String username,boolean flag) {
		
		//获取屏幕分辨率
	    Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		//获取屏幕宽高
	    ScreenWidth = (int)dimension.getWidth();
	    ScreenHeight = (int)dimension.getHeight();
		//设置总布局
		JFrame jf=new JFrame("书海小说网");
		jf.setLayout(new BorderLayout());
		jf.setIconImage(Toolkit.getDefaultToolkit().createImage(RankingFrame.class.getResource("./img/主题.jpg")));
		//界面总面板
		pl_All = new JPanel();
		pl_All.setPreferredSize(new Dimension(1500, 2400));
		pl_All.setLayout(new BorderLayout());
		//pl_All.setPreferredSize(new Dimension(900, 827));
		//滑动总面板
		sp_all=new JScrollPane();
		sp_all.getViewport().add(pl_All);
		sp_all.getVerticalScrollBar().setUnitIncrement(30);  
		jf.add(sp_all);
		
		//上部总面板
		pl_north=new JPanel();
		pl_north.setLayout(new BorderLayout());
		pl_north.setPreferredSize(new Dimension(ScreenWidth, 230));
		pl_north.setBackground(Color.white);
		pl_north.setBorder(new TitledBorder(""));
		pl_All.add(BorderLayout.NORTH,pl_north);
		Font font=new Font("微软雅黑", Font.PLAIN, 20);
		//上部面板上部
	    pl_north_north=new JPanel();
	    pl_north_north.setLayout(null);
	    pl_north_north.setPreferredSize(new Dimension(ScreenWidth, 33));
	    pl_north_north.setBackground(new Color(189,183,107));
	    pl_north.add(BorderLayout.NORTH,pl_north_north);
	    
	    //上部面板上部的三个书海标签
	    lb_Bokseagirls=new JLabel("书海女生网");
	    lb_Bokseagirls.setFont(font);
	    lb_Bokseagirls.setForeground(Color.black);
	    lb_Bokseagirls.setBounds( (int)(ScreenWidth*0.125),  (int)(ScreenHeight*0.2*0.2*0),160, 30);
	    pl_north_north.add(lb_Bokseagirls);
	    lb_Bokseagirls.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        		
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Bokseagirls.setCursor(new Cursor(Cursor.HAND_CURSOR));
        		lb_Bokseagirls.setForeground(Color.GRAY);
        	}
        	@Override
        	public void mouseExited(MouseEvent e) {
        		lb_Bokseagirls.setForeground(Color.black);
        	}
		});
	    
	    //书海女神网按钮隔开线
	    lb_BookSeaGirlNetPart=new JLabel("|");
	    lb_BookSeaGirlNetPart.setFont(font);
	    lb_BookSeaGirlNetPart.setForeground(Color.black);
	    lb_BookSeaGirlNetPart.setBounds( (int)(ScreenWidth*0.18),  (int)(ScreenHeight*0.2*0.2*0),30, 30);
	    pl_north_north.add(lb_BookSeaGirlNetPart);
	   
	    //书海文学网按钮
	    lb_BookSeaLiteratureNet=new JLabel("书海文学网");
	    lb_BookSeaLiteratureNet.setFont(font);
	    lb_BookSeaLiteratureNet.setForeground(Color.black);
	    lb_BookSeaLiteratureNet.setBounds( (int)(ScreenWidth*0.185),  (int)(ScreenHeight*0.2*0.2*0),160, 30);
	    pl_north_north.add(lb_BookSeaLiteratureNet);
	    lb_BookSeaLiteratureNet.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_BookSeaLiteratureNet.setCursor(new Cursor(Cursor.HAND_CURSOR));
        		lb_BookSeaLiteratureNet.setForeground(Color.GRAY);
        	}
        	public void mouseExited(MouseEvent e) {
        		lb_BookSeaLiteratureNet.setForeground(Color.black);
        	}
		});
	    
	    //书海女神网按钮隔开线
	    lb_BookSeaLiteratureNetPart=new JLabel("|");
	    lb_BookSeaLiteratureNetPart.setFont(font);
	    lb_BookSeaLiteratureNetPart.setForeground(Color.black);
	    lb_BookSeaLiteratureNetPart.setBounds( (int)(ScreenWidth*0.24),  (int)(ScreenHeight*0.2*0.2*0),30, 30);
	    pl_north_north.add(lb_BookSeaLiteratureNetPart);
	   
	    //书海动漫网按钮
	    lb_BookSeaComicNet=new JLabel("书海动漫网");
	    lb_BookSeaComicNet.setFont(font);
	    lb_BookSeaComicNet.setForeground(Color.black);
	    lb_BookSeaComicNet.setBounds( (int)(ScreenWidth*0.245),  (int)(ScreenHeight*0.2*0.2*0),160, 30);
	    pl_north_north.add(lb_BookSeaComicNet);
	    lb_BookSeaComicNet.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_BookSeaComicNet.setCursor(new Cursor(Cursor.HAND_CURSOR));
        		lb_BookSeaComicNet.setForeground(Color.GRAY);
        	}
        	public void mouseExited(MouseEvent e) {
        		lb_BookSeaComicNet.setForeground(Color.black);
        	}
		});
	    
	    //注册按钮
	    lb_register=new JLabel("注册");
		if (flag) {
			lb_register.setText(username);
			lb_register.addMouseListener(new MouseAdapter() {
			       @Override
			    public void mouseClicked(MouseEvent e) {
			    	  new Person_center(username,flag);
			          dispose();
			    }
			});
		 }else {
			 lb_register.setText("注册"); 
			 lb_register.addMouseListener(new MouseAdapter() {
				       @Override
				    public void mouseClicked(MouseEvent e) {
				    	   new Register_Jpanel();
				    	   dispose();
				    }
				});
		 }
	    lb_register.setFont(font);
	    lb_register.setForeground(Color.black);
        lb_register.setBounds( (int)(ScreenWidth*0.72),  (int)(ScreenHeight*0.2*0.2*0), 80, 30);
        lb_register.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseEntered(MouseEvent e) {
        		lb_register.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    pl_north_north.add(lb_register);
	    
	    //注册按钮隔开线
	    lb_registerPart=new JLabel("|");
	    lb_registerPart.setFont(font);
	    lb_registerPart.setForeground(Color.black);
	    lb_registerPart.setBounds( (int)(ScreenWidth*0.745),  (int)(ScreenHeight*0.2*0.2*0), 30, 30);
	    pl_north_north.add(lb_registerPart);

	    
	    //登录按钮
	    lb_north_login=new JLabel("登录");
		if (flag) {
			lb_north_login.setText("退出");
			lb_north_login.addMouseListener(new MouseAdapter() {
			       @Override
			    public void mouseClicked(MouseEvent e) {
			    	   new RankingFrame("", false);
			          dispose();
			    }
			});
		 }else {
			 lb_north_login.setText("登录"); 
			 lb_north_login.addMouseListener(new MouseAdapter() {
				       @Override
				    public void mouseClicked(MouseEvent e) {
				    	   new Login_Panel();
				    }
				});
		 }
	    lb_north_login.setFont(font);
	    lb_north_login.setForeground(Color.red);
	    //lb_register.setIcon(new ImageIcon(RankingFrame.class.getResource("/com/lxf/RankingFrame/上部统一面板/注册文字.png")));
	    lb_north_login.setBounds((int)(ScreenWidth*0.755),  (int)(ScreenHeight*0.2*0.2*0), 80, 30);
	    lb_north_login.addMouseListener(new MouseAdapter() {
        	
        	public void mouseEntered(MouseEvent e) {
        		lb_north_login.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	   
	    pl_north_north.add(lb_north_login);
	    
	    //登录按钮隔开线
	    lb_north_loginPart=new JLabel("|");
	    lb_north_loginPart.setFont(font);
	    lb_north_loginPart.setForeground(Color.black);
	    lb_north_loginPart.setBounds( (int)(ScreenWidth*0.78),  (int)(ScreenHeight*0.2*0.2*0), 30, 30);
	    pl_north_north.add(lb_north_loginPart);
	  
	 
	  
	    //帮助按钮
	    lb_help=new JLabel("帮助");
	    lb_help.setFont(font);
	    lb_help.setForeground(Color.black);
	    lb_help.setBounds((int)(ScreenWidth*0.79),  (int)(ScreenHeight*0.2*0.2*0), 80, 30);
	    pl_north_north.add(lb_help);
	    lb_help.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_help.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //帮助按钮隔开线
	    lb_helpPart=new JLabel("|");
	    lb_helpPart.setFont(font);
	    lb_helpPart.setForeground(Color.black);
	    lb_helpPart.setBounds( (int)(ScreenWidth*0.815),  (int)(ScreenHeight*0.2*0.2*0), 30, 30);
	    pl_north_north.add(lb_helpPart);
	    
	    //客户端按钮
	    lb_Client=new JLabel("客户端");
	    lb_Client.setFont(font);
	    lb_Client.setForeground(Color.black);
	    lb_Client.setBounds((int)(ScreenWidth*0.825),  (int)(ScreenHeight*0.2*0.2*0), 80, 30);
	    pl_north_north.add(lb_Client);
	    lb_Client.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Client.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //上部面板中部
	    pl_north_center=new JPanel();
	    pl_north_center.setLayout(null);
	    pl_north_center.setBackground(Color.white);
	    pl_north.add(BorderLayout.CENTER,pl_north_center);
		
	    //上部面板中部书海图片
	    lb_shuhai=new JLabel();
	    lb_shuhai.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/书海标题.png")));
	    lb_shuhai.setBounds( (int)(ScreenWidth*0.105),(int)(ScreenHeight*0.2*0.6*0.1*0.1*0.1), 300, 200);
	    pl_north_center.add(lb_shuhai);
	    
	    //上部面板热搜图片
	    lb_resou = new JLabel("热搜:");
	    lb_resou.setFont(font);
	    lb_resou.setBounds((int)(ScreenWidth*0.375), (int)(ScreenHeight*0.2*0.6*0.4),50, 20);
	    pl_north_center.add(lb_resou);
	    
	    lb_resou_msg1 = new JLabel("钉坟匠");
	    lb_resou_msg1.setForeground(Color.red);
	    lb_resou_msg1.setFont(font);
	    lb_resou_msg1.setBounds((int)(ScreenWidth*0.400), (int)(ScreenHeight*0.2*0.6*0.4),80, 20);
	    pl_north_center.add(lb_resou_msg1);
	    lb_resou_msg1.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_resou_msg1.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    		lb_resou_msg1.setForeground(Color.gray);
	    	}
	    	public void mouseExited(MouseEvent e) {
	    		lb_resou_msg1.setForeground(Color.red);
	    	}
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    lb_resou_msg2 = new JLabel("血刃");
	    lb_resou_msg2.setForeground(Color.red);
	    lb_resou_msg2.setFont(font);
	    lb_resou_msg2.setBounds((int)(ScreenWidth*0.435), (int)(ScreenHeight*0.2*0.6*0.4),80, 20);
	    pl_north_center.add(lb_resou_msg2);
	    lb_resou_msg2.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_resou_msg2.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    		lb_resou_msg2.setForeground(Color.gray);
	    	}
	    	public void mouseExited(MouseEvent e) {
	    		lb_resou_msg2.setForeground(Color.red);
	    	}
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    lb_resou_msg3 = new JLabel("绝世武尊");
	    lb_resou_msg3.setForeground(Color.red);
	    lb_resou_msg3.setFont(font);
	    lb_resou_msg3.setBounds((int)(ScreenWidth*0.460), (int)(ScreenHeight*0.2*0.6*0.4),80, 20);
	    pl_north_center.add(lb_resou_msg3);
	    lb_resou_msg3.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_resou_msg3.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    		lb_resou_msg3.setForeground(Color.gray);
	    	}
	    	@Override
	    	public void mouseExited(MouseEvent e) {
	    		lb_resou_msg3.setForeground(Color.red);
	    	}
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    //搜索文本框
	    tf_search=new JTextField();
	    tf_search.setFont(font);
	    tf_search.setBounds((int)(ScreenWidth*0.375), (int)(ScreenHeight*0.2*0.6*0.6),350, 50);
	    pl_north_center.add(tf_search);
	    
	    //上部面板输入提示图片
	    lb_searchTips=new JLabel();
	    lb_searchTips.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/输入提示标签.png")));
	    lb_searchTips.setBounds((int)(ScreenWidth*0.375), (int)(ScreenHeight*0.2*0.6*0.7),225, 30);
	    pl_north_center.add(lb_searchTips);
	    
	    //上部面板搜索按钮图片
	    lb_search=new JLabel();
	    lb_search.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/搜索.png")));
	    lb_search.setBounds((int)(ScreenWidth*0.56), (int)(ScreenHeight*0.2*0.6*0.6),80, 50);
	    pl_north_center.add(lb_search);
	    lb_search.setCursor(new Cursor(Cursor.HAND_CURSOR));
	  
        
	    lb_search.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (tf_search.getText() !=null) {
	    			new SearchFrame();
				}else {
					
				}
	    		
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			String params="%"+tf_search.getText()+"%";
	    			String sql="SELECT * FROM book WHERE bookname LIKE ?";
	    			Book book=searchbook(sql,params);
					System.out.println(book);
				}
	    	}
		});
	    
	    //上部面板充值按钮
	    lb_Recharge=new JLabel();
	    lb_Recharge.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/充值.png")));
	    lb_Recharge.setBounds((int)(ScreenWidth*0.69), (int)(ScreenHeight*0.2*0.6*0.4),225, 30);
	    pl_north_center.add(lb_Recharge);
	    lb_Recharge.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Recharge.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    //上部面板作家中心按钮
	    lb_WritersCenter=new JLabel();
	    lb_WritersCenter.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/作家中心.png")));
	    lb_WritersCenter.setBounds((int)(ScreenWidth*0.69), (int)(ScreenHeight*0.2*0.6*0.7),225, 30);
	    pl_north_center.add(lb_WritersCenter);
	    lb_WritersCenter.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_WritersCenter.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //上部面板邮件图像登录按钮
	    lb_center_loginMail=new JLabel();
	    lb_center_loginMail.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/邮箱图片登录图片.png")));
	    lb_center_loginMail.setBounds((int)(ScreenWidth*0.77), (int)(ScreenHeight*0.2*0.6*0.7),225, 30);
	    pl_north_center.add(lb_center_loginMail);
	    lb_center_loginMail.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_center_loginMail.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //上部面板登录头像图片
	    lb_center_loginHeadPicture=new JLabel();
	    lb_center_loginHeadPicture.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/登录注册按钮.png")));
	    lb_center_loginHeadPicture.setBounds((int)(ScreenWidth*0.81), (int)(ScreenHeight*0.2*0.6*0.5),280, 80);
	    pl_north_center.add(lb_center_loginHeadPicture);
	    
	  
	    //上部面板下部
	    pl_north_south=new JPanel();
	    pl_north_south.setLayout(null);
	    pl_north_south.setBackground(new Color(178,34,34));
	    pl_north_south.setPreferredSize(new Dimension(0, 50));
	    pl_north.add(BorderLayout.SOUTH,pl_north_south);
	    
	    //首页按钮
	    lb_FirstPage=new JLabel("首页");
	    lb_FirstPage.setFont(font);
	    lb_FirstPage.setForeground(Color.white);
	    lb_FirstPage.setBounds((int)(ScreenWidth*0.16), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    lb_FirstPage.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		new FirstPage_Jpanel("", rootPaneCheckingEnabled);
	    	}
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_FirstPage.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    pl_north_south.add(lb_FirstPage);
	    
	    //首页隔开按钮
	    lb_FirstPagePart=new JLabel("|");
	    lb_FirstPagePart.setFont(font);
	    lb_FirstPagePart.setForeground(Color.white);
	    lb_FirstPagePart.setBounds((int)(ScreenWidth*0.21), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_FirstPagePart);
	    
	    //书库按钮
	    lb_StackRoom=new JLabel("书库");
	    lb_StackRoom.setFont(font);
	    lb_StackRoom.setForeground(Color.white);
	    lb_StackRoom.setBounds((int)(ScreenWidth*0.24), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    lb_StackRoom.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new StackRoom(username, flag);
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_StackRoom.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    pl_north_south.add(lb_StackRoom);
	    
	    //书库隔开标签
	    lb_StackRoomPart=new JLabel("|");
	    lb_StackRoomPart.setFont(font);
	    lb_StackRoomPart.setForeground(Color.white);
	    lb_StackRoomPart.setBounds((int)(ScreenWidth*0.29), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_StackRoomPart);
	    
	    //排行按钮
	    lb_Ranking=new JLabel("排行");
	    lb_Ranking.setFont(font);
	    lb_Ranking.setForeground(Color.white);
	    lb_Ranking.setBounds((int)(ScreenWidth*0.325), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    lb_Ranking.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new RankingFrame(username, flag);
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Ranking.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    pl_north_south.add(lb_Ranking);
	    
	    //排行隔开标签
	    lb_RankingPart=new JLabel("|");
	    lb_RankingPart.setFont(font);
	    lb_RankingPart.setForeground(Color.white);
	    lb_RankingPart.setBounds((int)(ScreenWidth*0.37), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_RankingPart);
	    
	    //IP专区按钮
	    lb_IpSpecialArea=new JLabel("IP专区");
	    lb_IpSpecialArea.setFont(font);
	    lb_IpSpecialArea.setForeground(Color.white);
	    lb_IpSpecialArea.setBounds((int)(ScreenWidth*0.4), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_IpSpecialArea);
	    
	    lb_IpSpecialArea.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_IpSpecialArea.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    //IP专区按钮隔开线
	    lb_IpSpecialAreaPart=new JLabel("|");
	    lb_IpSpecialAreaPart.setFont(font);
	    lb_IpSpecialAreaPart.setForeground(Color.white);
	    lb_IpSpecialAreaPart.setBounds((int)(ScreenWidth*0.455), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_IpSpecialAreaPart);
	    
	    //作家福利按钮
	    lb_WriterWelfare=new JLabel("作家福利");
	    lb_WriterWelfare.setFont(font);
	    lb_WriterWelfare.setForeground(Color.white);
	    lb_WriterWelfare.setBounds((int)(ScreenWidth*0.485), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_WriterWelfare);
	    lb_WriterWelfare.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_WriterWelfare.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new WelfareFrame();
        	}
        	
		});
	    
	    //作家福利按钮隔开线
	    lb_WriterWelfarePart=new JLabel("|");
	    lb_WriterWelfarePart.setFont(font);
	    lb_WriterWelfarePart.setForeground(Color.white);
	    lb_WriterWelfarePart.setBounds((int)(ScreenWidth*0.55), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_WriterWelfarePart);
	    
	    
	    //公告资讯按钮
	    lb_AnnounceInformation=new JLabel("公告资讯");
	    lb_AnnounceInformation.setFont(font);
	    lb_AnnounceInformation.setForeground(Color.white);
	    lb_AnnounceInformation.setBounds((int)(ScreenWidth*0.58), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    lb_AnnounceInformation.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    pl_north_south.add(lb_AnnounceInformation);
	    
	    lb_AnnounceInformation.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new Notice(username, flag);
        	}
		});
	    
	    //公告资讯按钮隔开线
	    lb_AnnounceInformationPart=new JLabel("|");
	    lb_AnnounceInformationPart.setFont(font);
	    lb_AnnounceInformationPart.setForeground(Color.white);
	    lb_AnnounceInformationPart.setBounds((int)(ScreenWidth*0.645), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_AnnounceInformationPart);
	    
	    //女生专区按钮
	    lb_GirlSpecialArea=new JLabel("女生专区");
	    lb_GirlSpecialArea.setFont(font);
	    lb_GirlSpecialArea.setForeground(Color.white);
	    lb_GirlSpecialArea.setBounds((int)(ScreenWidth*0.675), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_GirlSpecialArea);
	    
	    lb_GirlSpecialArea.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_GirlSpecialArea.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    
	    //女生专区按钮隔开线
	    lb_GirlSpecialAreaPart=new JLabel("|");
	    lb_GirlSpecialAreaPart.setFont(font);
	    lb_GirlSpecialAreaPart.setForeground(Color.white);
	    lb_GirlSpecialAreaPart.setBounds((int)(ScreenWidth*0.74), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_GirlSpecialAreaPart);
	    
	    
	    //我的书架按钮
	    lb_MyBookShelf=new JLabel("我的书架");
	    lb_MyBookShelf.setFont(font);
	    lb_MyBookShelf.setForeground(Color.white);
	    lb_MyBookShelf.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        			new My_bookshelf("", rootPaneCheckingEnabled);
        		}
        	public void mouseEntered(MouseEvent e) {
        		lb_MyBookShelf.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}	
      
		});
	    lb_MyBookShelf.setBounds((int)(ScreenWidth*0.77), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_MyBookShelf);
	    
	    //==========================================================================
	    //中部面板
	    pl_center = new JPanel();
	    pl_center.setLayout(new BorderLayout());
	    pl_center.setBackground(Color.white);
	    pl_All.add(BorderLayout.CENTER,pl_center);
	    
	    //中部上部面板
	    pl_center_north = new JPanel();
	    pl_center_north.setPreferredSize(new Dimension(0, 100));
	    pl_center.add(BorderLayout.NORTH,pl_center_north);
	    
	    //中部下部面板
	    pl_center_south = new JPanel();
	    pl_center_south.setPreferredSize(new Dimension(0, 100));
	    pl_center.add(BorderLayout.SOUTH,pl_center_south);
	    
	    //左边面板
	    pl_center_left = new JPanel();
	    pl_center_left.setPreferredSize(new Dimension(245, 0));
	    pl_center.add(BorderLayout.WEST,pl_center_left);
	    
	    //右边面板
	    pl_center_right = new JPanel();
	    pl_center_right.setPreferredSize(new Dimension(245, 0));
	    pl_center.add(BorderLayout.EAST,pl_center_right);
	  
	    // 排行面板
	    pl_paihang=new JPanel();
	    pl_paihang.setLayout(new GridLayout(2, 3, 50, 40));
	    pl_paihang.setBackground(Color.white);
	    GridBagConstraints gbc = new GridBagConstraints();
	    Font font_two = new Font("宋体", font.BOLD, 25);

	    //封神榜面板
	    pl_fengshenbang=new JPanel();
	    pl_fengshenbang.setLayout(new BorderLayout());
	    pl_fengshenbang.setBackground(Color.white);
	    pl_fengshenbang.setBorder(new LineBorder(Color.gray));
	    pl_fengshenbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_fengshenbang);
        
        //封神榜面板上部
        pl_fengshenbang_north = new JPanel();
        pl_fengshenbang_north.setLayout(null);
        pl_fengshenbang_north.setPreferredSize(new Dimension(0, 100));
        pl_fengshenbang_north.setBorder(new TitledBorder(""));
        pl_fengshenbang.add(BorderLayout.NORTH,pl_fengshenbang_north);
        
        //封神榜标签
        lb_fengshenbang = new JLabel("|封神榜");
        lb_fengshenbang.setFont(font_two);
        lb_fengshenbang.setBounds(10, 5, 100, 100);
        pl_fengshenbang_north.add(lb_fengshenbang);
        
        //封神榜面板中部
        pl_fengshenbang_center = new JPanel();
        pl_fengshenbang_center.setLayout(null);
        pl_fengshenbang.add(BorderLayout.CENTER,pl_fengshenbang_center);
        
        //封神榜第一条信息的序号标签
		lb_fengshenbang_one = new JLabel();
		lb_fengshenbang_one.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签1.png")));
		lb_fengshenbang_one.setBounds(5, 5, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one);
		
		//封神榜第一条信息标签
		lb_fengshenbang_one_msg1 = new JLabel("山海经密档");
		lb_fengshenbang_one_msg1.setFont(font);
		lb_fengshenbang_one_msg1.setBounds(45, 5, 100, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg1);
		lb_fengshenbang_one_msg1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg1.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg1.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg1.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				jf.dispose();
				new ClickLaterFrame(new ImageIcon(RankingFrame.class.getResource("./img/山海经图片.png")),"山海经",username,flag);
			}
		});
		
		//封神榜第一条信息的图片
		lb_fengshenbang_one_image = new JLabel();
		lb_fengshenbang_one_image.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/封神榜标签1的图片.png")));
		lb_fengshenbang_one_image.setBounds(5, 45, 420, 120);
		pl_fengshenbang_center.add(lb_fengshenbang_one_image);
		
		
		//封神榜第二条信息的序号
		lb_fengshenbang_two = new JLabel();
		lb_fengshenbang_two.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签2.png")));
		lb_fengshenbang_two.setBounds(5, 160, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_two);
		
		//封神榜第二条信息
		lb_fengshenbang_one_msg2 = new JLabel("异国猎宝档案");
		lb_fengshenbang_one_msg2.setFont(font);
		lb_fengshenbang_one_msg2.setBounds(45, 160, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg2);
		lb_fengshenbang_one_msg2.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg2.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg2.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg2.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				j3 = new JLabel();
//				j3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/异国.png")));
//				
//				j3_msg = new JLabel();
//				j3_msg.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/异国标签.png")));
//				new ClickLaterFrame("./img/异国.png",null);
			}
		});
		
		//封神榜第三条信息的序号
		lb_fengshenbang_three = new JLabel();
		lb_fengshenbang_three.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签3.png")));
		lb_fengshenbang_three.setBounds(5, 200, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_three);
		
		//封神榜第三条信息
		lb_fengshenbang_one_msg3 = new JLabel("最狂吞噬系统");
		lb_fengshenbang_one_msg3.setFont(font);
		lb_fengshenbang_one_msg3.setBounds(45, 200, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg3);
		lb_fengshenbang_one_msg3.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg3.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg3.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg3.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				j4 = new JLabel();
//				j4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/最强.png")));
//				
//				j4_msg = new JLabel();
//				j4_msg.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/最强标签.png")));
				
//				new ClickLaterFrame("./img/最强.png",null);
			}
		});
		
		//封神榜第四条信息的序号
		lb_fengshenbang_four = new JLabel();
		lb_fengshenbang_four.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签4.png")));
		lb_fengshenbang_four.setBounds(5, 240, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_four);
		
		//封神榜第四条信息
		lb_fengshenbang_one_msg4 = new JLabel("无上斗魂");
		lb_fengshenbang_one_msg4.setFont(font);
		lb_fengshenbang_one_msg4.setBounds(45, 240, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg4);
		lb_fengshenbang_one_msg4.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg4.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg4.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg4.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});
		
		//封神榜第五条信息的序号
		lb_fengshenbang_five = new JLabel();
		lb_fengshenbang_five.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签5.png")));
		lb_fengshenbang_five.setBounds(5, 280, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_five);
		
		//封神榜第五条信息
		lb_fengshenbang_one_msg5 = new JLabel("龙血狂神");
		lb_fengshenbang_one_msg5.setFont(font);
		lb_fengshenbang_one_msg5.setBounds(45, 280, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg5);
		lb_fengshenbang_one_msg5.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg5.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg5.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg5.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});

		//封神榜第六条信息的序号
		lb_fengshenbang_six = new JLabel();
		lb_fengshenbang_six.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签6.png")));
		lb_fengshenbang_six.setBounds(3, 320, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_six);
		
		//封神榜第六条信息
		lb_fengshenbang_one_msg6 = new JLabel("八万年魔头在都市");
		lb_fengshenbang_one_msg6.setFont(font);
		lb_fengshenbang_one_msg6.setBounds(45, 320, 180, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg6);
		lb_fengshenbang_one_msg6.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg6.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg6.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg6.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});
		
		//封神榜第七条信息的序号
		lb_fengshenbang_seven= new JLabel();
		lb_fengshenbang_seven.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签7.png")));
		lb_fengshenbang_seven.setBounds(5, 360, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_seven);
		
		//封神榜第七条信息
		lb_fengshenbang_one_msg7 = new JLabel("修仙强者重回都市");
		lb_fengshenbang_one_msg7.setFont(font);
		lb_fengshenbang_one_msg7.setBounds(45, 360, 180, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg7);
		lb_fengshenbang_one_msg7.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg7.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg7.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg7.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});
		
		//封神榜第八条信息的序号
		lb_fengshenbang_eight = new JLabel();
		lb_fengshenbang_eight.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签8.png")));
		lb_fengshenbang_eight.setBounds(5, 400, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_eight);
		
		//封神榜第八条信息
		lb_fengshenbang_one_msg8 = new JLabel("青山炼仙诀");
		lb_fengshenbang_one_msg8.setFont(font);
		lb_fengshenbang_one_msg8.setBounds(45, 400, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg8);
		lb_fengshenbang_one_msg8.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg8.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg8.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg8.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});
		
		//封神榜第九条信息的序号
		lb_fengshenbang_nine= new JLabel();
		lb_fengshenbang_nine.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签9.png")));
		lb_fengshenbang_nine.setBounds(3, 440, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_nine);
		
		//封神榜第九条信息
		lb_fengshenbang_one_msg9 = new JLabel("真龙");
		lb_fengshenbang_one_msg9.setFont(font);
		lb_fengshenbang_one_msg9.setBounds(45, 440, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg9);
		lb_fengshenbang_one_msg9.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg9.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg9.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg9.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});
		
		//封神榜第十条信息的序号
		lb_fengshenbang_ten= new JLabel();
		lb_fengshenbang_ten.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/标签10.png")));
		lb_fengshenbang_ten.setBounds(5, 480, 50, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_ten);
		
		//封神榜第十条信息
		lb_fengshenbang_one_msg10 = new JLabel("穿山甲异界纵横");
		lb_fengshenbang_one_msg10.setFont(font);
		lb_fengshenbang_one_msg10.setBounds(45, 480, 150, 50);
		pl_fengshenbang_center.add(lb_fengshenbang_one_msg10);
		lb_fengshenbang_one_msg10.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_fengshenbang_one_msg10.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_fengshenbang_one_msg10.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_fengshenbang_one_msg10.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
//				new ClickLaterFrame();
			}
		});

		//=======================================================================================
		
        //点击榜
	    pl_dianjibang=new JPanel();
	    pl_dianjibang.setBorder(new LineBorder(Color.gray));
	 
	    pl_dianjibang.setLayout(new BorderLayout());
	    
	    //点击榜上部
	    
	    pl_dianjibang_north = new JPanel();
	    pl_dianjibang_north.setLayout(null);
	    pl_dianjibang_north.setBorder(new TitledBorder(""));
	    pl_dianjibang_north.setPreferredSize(new Dimension(0, 100));
	    pl_dianjibang.add(BorderLayout.NORTH,pl_dianjibang_north);
	    
	    
	    lb_dianjibang_click = new JLabel("|点击榜");
	    lb_dianjibang_click.setFont(font_two);
	    lb_dianjibang_click.setBounds(10, 5, 100, 100);
	    pl_dianjibang_north.add(lb_dianjibang_click);
	    
	    lb_dianjibang_year = new JLabel();
	    lb_dianjibang_year.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    lb_dianjibang_year.setFont(font_two);
	    lb_dianjibang_year.setBounds(310, 5, 50, 100);
	    lb_dianjibang_year.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_dianjibang_year.addMouseListener(new MouseAdapter() {
	    	public void mouseClicked(MouseEvent e) {
	    		lb_dianjibang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击1.png")));
	    		lb_dianjibang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击2.png")));
	    		lb_dianjibang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击3.png")));
	    		lb_dianjibang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击4.png")));
	    		lb_dianjibang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击5.png")));
	    		lb_dianjibang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击6.png")));
	    		lb_dianjibang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击7.png")));
	    		lb_dianjibang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击8.png")));
	    		lb_dianjibang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击9.png")));
	    		lb_dianjibang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击10.png"))); 
	    		lb_dianjibang_year.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    		lb_dianjibang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_dianjibang_day.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    pl_dianjibang_north.add(lb_dianjibang_year);
	    
	    
	    lb_dianjibang_month = new JLabel();
	    lb_dianjibang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    lb_dianjibang_month.setFont(font_two);
	    lb_dianjibang_month.setBounds(350, 5, 40, 100);
	    lb_dianjibang_month.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_dianjibang_month.addMouseListener(new MouseAdapter() {
	    	public void mouseClicked(MouseEvent e) {
	    		lb_dianjibang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜1.png")));
	    		lb_dianjibang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜2.png")));
	    		lb_dianjibang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜3.png")));
	    		lb_dianjibang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜4.png")));
	    		lb_dianjibang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜5.png")));
	    		lb_dianjibang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜6.png")));
	    		lb_dianjibang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜7.png")));
	    		lb_dianjibang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜8.png")));
	    		lb_dianjibang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜9.png")));
	    		lb_dianjibang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击月榜10.png")));
	    		lb_dianjibang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红月.png")));
	    		lb_dianjibang_year.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_dianjibang_day.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang.repaint();
	    		pl_dianjibang.updateUI();
	    	}
		});
	    
	    pl_dianjibang_north.add(lb_dianjibang_month);
	    
	    
	    lb_dianjibang_day = new JLabel();
	    lb_dianjibang_day.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    lb_dianjibang_day.setFont(font_two);
	    lb_dianjibang_day.setBounds(390, 5, 100, 100);
	    lb_dianjibang_day.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_dianjibang_day.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_dianjibang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜1.png")));
	    		lb_dianjibang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜2.png")));
	    		lb_dianjibang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜3.png")));
	    		lb_dianjibang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜4.png")));
	    		lb_dianjibang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜5.png")));
	    		lb_dianjibang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜6.png")));
	    		lb_dianjibang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜7.png")));
	    		lb_dianjibang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜8.png")));
	    		lb_dianjibang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜9.png")));
	    		lb_dianjibang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击总榜10.png")));
	    		lb_dianjibang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_dianjibang_year.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_dianjibang_day.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红总.png")));
	    		pl_dianjibang.repaint();
	    		pl_dianjibang.updateUI();
	    	}
		});
	    
	    pl_dianjibang_north.add(lb_dianjibang_day);
	    
	    
	    //点击榜中部
	    pl_dianjibang_center = new JPanel();
//	    pl_dianjibang_center.setLayout(new GridBagLayout());
	    pl_dianjibang.add(BorderLayout.CENTER,pl_dianjibang_center);
	    pl_paihang.add(pl_dianjibang);
	    
        
        //周榜1
		
		 lb_dianjibang1 = new JLabel();
		 lb_dianjibang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击1.png")));
		 lb_dianjibang1.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang1.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});
			
		 //周榜1    
		 lb_dianjibang2 = new JLabel();
		 lb_dianjibang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击2.png")));	
		 lb_dianjibang2.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang2.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});
			
		 lb_dianjibang3 = new JLabel();
		 lb_dianjibang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击3.png")));
		 lb_dianjibang3.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang3.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});
			
		 lb_dianjibang4 = new JLabel();
		 lb_dianjibang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击4.png")));
		 lb_dianjibang4.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang4.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

		 lb_dianjibang5 = new JLabel();
		 lb_dianjibang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击5.png")));
		 lb_dianjibang5.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang5.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

		 lb_dianjibang6 = new JLabel();
		 lb_dianjibang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击6.png")));
		 lb_dianjibang6.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang6.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

		 lb_dianjibang7 = new JLabel();
		 lb_dianjibang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击7.png")));
		 lb_dianjibang7.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang7.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

		 lb_dianjibang8 = new JLabel();
		 lb_dianjibang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击8.png")));
		 lb_dianjibang8.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang8.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

		 lb_dianjibang9 = new JLabel();
		 lb_dianjibang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击9.png")));
		 lb_dianjibang9.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang9.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

		 lb_dianjibang10 = new JLabel();
		 lb_dianjibang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击10.png")));
		 lb_dianjibang10.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseEntered(MouseEvent e) {
					lb_dianjibang10.setCursor(new Cursor(Cursor.HAND_CURSOR));
				}
				@Override
				public void mouseClicked(MouseEvent e) {
				}
			});

			gbc.gridx=0;
			gbc.gridy=0;
			pl_dianjibang_center.add(lb_dianjibang1,gbc);
			gbc.gridx=0;
			gbc.gridy=1;
			pl_dianjibang_center.add(lb_dianjibang2,gbc);
			gbc.gridx=0;
			gbc.gridy=2;
			pl_dianjibang_center.add(lb_dianjibang3,gbc);
			gbc.gridx=0;
			gbc.gridy=3;
			pl_dianjibang_center.add(lb_dianjibang4,gbc);
			gbc.gridx=0;
			gbc.gridy=4;
			pl_dianjibang_center.add(lb_dianjibang5,gbc);
			gbc.gridx=0;
			gbc.gridy=5;
			pl_dianjibang_center.add(lb_dianjibang6,gbc);
			gbc.gridx=0;
			gbc.gridy=6;
			pl_dianjibang_center.add(lb_dianjibang7,gbc);
			gbc.gridx=0;
			gbc.gridy=7;
			pl_dianjibang_center.add(lb_dianjibang8,gbc);
			gbc.gridx=0;
			gbc.gridy=8;
			pl_dianjibang_center.add(lb_dianjibang9,gbc);
			gbc.gridx=0;
			gbc.gridy=9;
			pl_dianjibang_center.add(lb_dianjibang10,gbc);

		
		
		//=================================================================================
        
        //收藏榜
	    pl_shoucangbang=new JPanel();
	    pl_shoucangbang.setBorder(new LineBorder(Color.gray));
	    pl_shoucangbang.setLayout(new BorderLayout());
	    pl_shoucangbang.setBackground(Color .white);
	    pl_shoucangbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_shoucangbang);
        
        //收藏榜上部
	    
        pl_shoucangbang_north = new JPanel();
        pl_shoucangbang_north.setLayout(null);
        pl_shoucangbang_north.setBorder(new TitledBorder(""));
        pl_shoucangbang_north.setPreferredSize(new Dimension(0, 100));
	    pl_shoucangbang.add(BorderLayout.NORTH,pl_shoucangbang_north);
	    
	    
	    
	    lb_dianjibang_click = new JLabel("|收藏榜");
	    lb_dianjibang_click.setFont(font_two);
	    lb_dianjibang_click.setBounds(10, 5, 100, 100);
	    pl_shoucangbang_north.add(lb_dianjibang_click);
	    
	    lb_shoucangbang_week = new JLabel();
	    lb_shoucangbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    lb_shoucangbang_week.setFont(font_two);
	    lb_shoucangbang_week.setBounds(310, 5, 50, 100);
	    lb_shoucangbang_week.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_shoucangbang_week.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_shouchangbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜1.png")));
	    		lb_shouchangbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜2.png")));
	    		lb_shouchangbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜3.png")));
	    		lb_shouchangbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜4.png")));
	    		lb_shouchangbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜5.png")));
	    		lb_shouchangbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜6.png")));
	    		lb_shouchangbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜7.png")));
	    		lb_shouchangbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜8.png")));
	    		lb_shouchangbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜9.png")));
	    		lb_shouchangbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜10.png")));  
	    		lb_shoucangbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    		lb_shoucangbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_shoucangbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    
	    pl_shoucangbang_north.add(lb_shoucangbang_week);
	    lb_shoucangbang_month = new JLabel();
	    lb_shoucangbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    lb_shoucangbang_month.setFont(font_two);
	    lb_shoucangbang_month.setBounds(350, 5, 50, 100);
	    lb_shoucangbang_month.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_shoucangbang_month.addMouseListener(new MouseAdapter() {
	    
	    	public void mouseClicked(MouseEvent e) {
	    		lb_shouchangbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜1.png")));
	    		lb_shouchangbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜2.png")));
	    		lb_shouchangbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜3.png")));
	    		lb_shouchangbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜4.png")));
	    		lb_shouchangbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜5.png")));
	    		lb_shouchangbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜6.png")));
	    		lb_shouchangbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜7.png")));
	    		lb_shouchangbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜8.png")));
	    		lb_shouchangbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜9.png")));
	    		lb_shouchangbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏月榜10.png"))); 
	    		lb_shoucangbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_shoucangbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红月.png")));
	    		lb_shoucangbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    
	    pl_shoucangbang_north.add(lb_shoucangbang_month);
	    
	    
	    lb_shoucangbang_all = new JLabel();
	    lb_shoucangbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    lb_shoucangbang_all.setFont(font_two);
	    lb_shoucangbang_all.setBounds(390, 5, 50, 100);
	    lb_shoucangbang_all.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_shoucangbang_all.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_shouchangbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总1.png")));
	    		lb_shouchangbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总2.png")));
	    		lb_shouchangbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总3.png")));
	    		lb_shouchangbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总4.png")));
	    		lb_shouchangbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总5.png")));
	    		lb_shouchangbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总6.png")));
	    		lb_shouchangbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总7.png")));
	    		lb_shouchangbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总8.png")));
	    		lb_shouchangbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总9.png")));
	    		lb_shouchangbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收总10.png")));  
	    		lb_shoucangbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_shoucangbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_shoucangbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    pl_shoucangbang_north.add(lb_shoucangbang_all);
	    
	    
	    //收藏榜中部
	    pl_shoucangbang_center = new JPanel();
	    pl_shoucangbang.add(BorderLayout.CENTER,pl_shoucangbang_center);
	    
	    
	    pl_shoucangbang.setBackground(Color.white);
	    pl_shoucangbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_shoucangbang);
        
  
        lb_shouchangbang1 = new JLabel();
        lb_shouchangbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜1.png")));
        lb_shouchangbang1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang1.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
		    
        lb_shouchangbang2 = new JLabel();
        lb_shouchangbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜2.png")));	
        lb_shouchangbang2.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang2.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        lb_shouchangbang3 = new JLabel();
        lb_shouchangbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜3.png")));
        lb_shouchangbang3.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang3.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        lb_shouchangbang4 = new JLabel();
        lb_shouchangbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜4.png")));
        lb_shouchangbang4.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang4.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_shouchangbang5 = new JLabel();
        lb_shouchangbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜5.png")));
        lb_shouchangbang5.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang5.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_shouchangbang6 = new JLabel();
        lb_shouchangbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜6.png")));
        lb_shouchangbang6.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang6.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_shouchangbang7 = new JLabel();
        lb_shouchangbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜7.png")));
        lb_shouchangbang7.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang7.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_shouchangbang8 = new JLabel();
        lb_shouchangbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜8.png")));
        lb_shouchangbang8.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang8.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_shouchangbang9 = new JLabel();
		lb_shouchangbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜9.png")));
		lb_shouchangbang9.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang9.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

		lb_shouchangbang10 = new JLabel();
		lb_shouchangbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/收藏周榜10.png")));
		lb_shouchangbang10.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_shouchangbang10.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

		gbc.gridx=0;
		gbc.gridy=1;
		pl_shoucangbang_center.add(lb_shouchangbang1,gbc);
		gbc.gridx=0;
		gbc.gridy=2;
		pl_shoucangbang_center.add(lb_shouchangbang2,gbc);
		gbc.gridx=0;
		gbc.gridy=3;
		pl_shoucangbang_center.add(lb_shouchangbang3,gbc);
		gbc.gridx=0;
		gbc.gridy=4;
		pl_shoucangbang_center.add(lb_shouchangbang4,gbc);
		gbc.gridx=0;
		gbc.gridy=5;
		pl_shoucangbang_center.add(lb_shouchangbang5,gbc);
		gbc.gridx=0;
		gbc.gridy=6;
		pl_shoucangbang_center.add(lb_shouchangbang6,gbc);
		gbc.gridx=0;
		gbc.gridy=7;
		pl_shoucangbang_center.add(lb_shouchangbang7,gbc);
		gbc.gridx=0;
		gbc.gridy=8;
		pl_shoucangbang_center.add(lb_shouchangbang8,gbc);
		gbc.gridx=0;
		gbc.gridy=9;
		pl_shoucangbang_center.add(lb_shouchangbang9,gbc);
		gbc.gridx=0;
		gbc.gridy=10;
		pl_shoucangbang_center.add(lb_shouchangbang10,gbc);
		
		
        
        //销售榜
	    pl_xiaoshoubang=new JPanel();
	    pl_xiaoshoubang.setBorder(new LineBorder(Color.gray));
	    pl_xiaoshoubang.setBackground(Color .white);
	    pl_xiaoshoubang.setPreferredSize(new Dimension(270, 600));
	    pl_xiaoshoubang.setLayout(new BorderLayout());
        pl_paihang.add(pl_xiaoshoubang);
        
//        //销售榜
//        pl_xiaoshoubang=new JPanel();
//        pl_xiaoshoubang.setBorder(new LineBorder(Color.gray));
        
	    
	    //销售榜上部
//	    Font font_two = new Font("宋体", font.BOLD, 25);
	    
        pl_xiaoshoubang_north = new JPanel();
        pl_xiaoshoubang_north.setLayout(null);
        pl_xiaoshoubang_north.setBorder(new TitledBorder(""));
        pl_xiaoshoubang_north.setPreferredSize(new Dimension(0, 100));
        pl_xiaoshoubang.add(BorderLayout.NORTH,pl_xiaoshoubang_north);
	    
	    
	    
	    lb_dianjibang_click = new JLabel("|销售榜");
	    lb_dianjibang_click.setFont(font_two);
	    lb_dianjibang_click.setBounds(10, 5, 100, 100);
	    pl_xiaoshoubang_north.add(lb_dianjibang_click);
	    
	    lb_xiaoshoubang_week = new JLabel();
	    lb_xiaoshoubang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    lb_xiaoshoubang_week.setFont(font_two);
	    lb_xiaoshoubang_week.setBounds(310, 5, 50, 100);
	    lb_xiaoshoubang_week.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_xiaoshoubang_week.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_xiaoshoubang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜1.png")));
	    		lb_xiaoshoubang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜2.png")));
	    		lb_xiaoshoubang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜3.png")));
	    		lb_xiaoshoubang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜4.png")));
	    		lb_xiaoshoubang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜5.png")));
	    		lb_xiaoshoubang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜6.png")));
	    		lb_xiaoshoubang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜7.png")));
	    		lb_xiaoshoubang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜8.png")));
	    		lb_xiaoshoubang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜9.png")));
	    		lb_xiaoshoubang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜10.png"))); 
	    		lb_xiaoshoubang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    		lb_xiaoshoubang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_xiaoshoubang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    
	    pl_xiaoshoubang_north.add(lb_xiaoshoubang_week);
	    
	    lb_xiaoshoubang_month = new JLabel();
	    lb_xiaoshoubang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    lb_xiaoshoubang_month.setFont(font_two);
	    lb_xiaoshoubang_month.setBounds(350, 5, 50, 100);
	    lb_xiaoshoubang_month.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_xiaoshoubang_month.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_xiaoshoubang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜1.png")));
	    		lb_xiaoshoubang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜2.png")));
	    		lb_xiaoshoubang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜3.png")));
	    		lb_xiaoshoubang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜4.png")));
	    		lb_xiaoshoubang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜5.png")));
	    		lb_xiaoshoubang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜6.png")));
	    		lb_xiaoshoubang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜7.png")));
	    		lb_xiaoshoubang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜8.png")));
	    		lb_xiaoshoubang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜9.png")));
	    		lb_xiaoshoubang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售月榜10.png"))); 
	    		lb_xiaoshoubang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_xiaoshoubang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红月.png")));
	    		lb_xiaoshoubang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	   
	    
	    pl_xiaoshoubang_north.add(lb_xiaoshoubang_month);
	    
	    
	    lb_xiaoshoubang_all = new JLabel();
	    lb_xiaoshoubang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    lb_xiaoshoubang_all.setFont(font_two);
	    lb_xiaoshoubang_all.setBounds(390, 5, 50, 100);
	    lb_xiaoshoubang_all.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_xiaoshoubang_all.addMouseListener(new MouseAdapter() {
	    
	    	public void mouseClicked(MouseEvent e) {
	    		lb_xiaoshoubang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击1.png")));
	    		lb_xiaoshoubang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击2.png")));
	    		lb_xiaoshoubang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击3.png")));
	    		lb_xiaoshoubang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击4.png")));
	    		lb_xiaoshoubang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击5.png")));
	    		lb_xiaoshoubang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击6.png")));
	    		lb_xiaoshoubang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击7.png")));
	    		lb_xiaoshoubang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击8.png")));
	    		lb_xiaoshoubang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击9.png")));
	    		lb_xiaoshoubang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/点击10.png")));  
	    		lb_xiaoshoubang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_xiaoshoubang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_xiaoshoubang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    
	    pl_xiaoshoubang_north.add(lb_xiaoshoubang_all);
	    
	    
	    //销售榜中部
	    pl_xiaoshoubang_center = new JPanel();
	    pl_xiaoshoubang.add(BorderLayout.CENTER,pl_xiaoshoubang_center);
	    
	    
	    pl_xiaoshoubang.setBackground(Color.white);
	    pl_xiaoshoubang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_xiaoshoubang);
        
  
        lb_xiaoshoubang1 = new JLabel();
        lb_xiaoshoubang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜1.png")));
        lb_xiaoshoubang1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang1.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		    
        lb_xiaoshoubang2 = new JLabel();
        lb_xiaoshoubang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜2.png")));
        lb_xiaoshoubang2.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang2.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        lb_xiaoshoubang3 = new JLabel();
        lb_xiaoshoubang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜3.png")));
        lb_xiaoshoubang3.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang3.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        lb_xiaoshoubang4 = new JLabel();
        lb_xiaoshoubang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜4.png")));
        lb_xiaoshoubang4.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang4.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_xiaoshoubang5 = new JLabel();
        lb_xiaoshoubang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜5.png")));
        lb_xiaoshoubang5.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang5.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_xiaoshoubang6 = new JLabel();
        lb_xiaoshoubang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜6.png")));
        lb_xiaoshoubang6.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang6.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_xiaoshoubang7 = new JLabel();
        lb_xiaoshoubang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜7.png")));
        lb_xiaoshoubang7.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang7.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_xiaoshoubang8 = new JLabel();
        lb_xiaoshoubang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜8.png")));
        lb_xiaoshoubang8.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang8.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_xiaoshoubang9 = new JLabel();
        lb_xiaoshoubang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜9.png")));
        lb_xiaoshoubang9.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang9.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_xiaoshoubang10 = new JLabel();
        lb_xiaoshoubang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/销售周榜10.png")));
        lb_xiaoshoubang10.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_xiaoshoubang10.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

		gbc.gridx=0;
		gbc.gridy=1;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang1,gbc);
		gbc.gridx=0;
		gbc.gridy=2;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang2,gbc);
		gbc.gridx=0;
		gbc.gridy=3;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang3,gbc);
		gbc.gridx=0;
		gbc.gridy=4;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang4,gbc);
		gbc.gridx=0;
		gbc.gridy=5;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang5,gbc);
		gbc.gridx=0;
		gbc.gridy=6;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang6,gbc);
		gbc.gridx=0;
		gbc.gridy=7;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang7,gbc);
		gbc.gridx=0;
		gbc.gridy=8;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang8,gbc);
		gbc.gridx=0;
		gbc.gridy=9;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang9,gbc);
		gbc.gridx=0;
		gbc.gridy=10;
		pl_xiaoshoubang_center.add(lb_xiaoshoubang10,gbc);
		
       //====================================================
		
		
        //更新榜
	    pl_gengxinbang=new JPanel();
	    pl_gengxinbang.setBorder(new LineBorder(Color.gray));
	    pl_gengxinbang.setBackground(Color .white);
	    pl_gengxinbang.setLayout(new BorderLayout());
	    pl_gengxinbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_gengxinbang);
	    
        pl_gengxinbang_north = new JPanel();
        pl_gengxinbang_north.setLayout(null);
        pl_gengxinbang_north.setBorder(new TitledBorder(""));
        pl_gengxinbang_north.setPreferredSize(new Dimension(0, 100));
        pl_gengxinbang.add(BorderLayout.NORTH,pl_gengxinbang_north);
	    
	    
	    
	    lb_dianjibang_click = new JLabel("|更新榜");
	    lb_dianjibang_click.setFont(font_two);
	    lb_dianjibang_click.setBounds(10, 5, 100, 100);
	    pl_gengxinbang_north.add(lb_dianjibang_click);
	    
	    lb_gengxinbang_week = new JLabel();
	    lb_gengxinbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    lb_gengxinbang_week.setFont(font_two);
	    lb_gengxinbang_week.setBounds(310, 5, 50, 100);
	    lb_gengxinbang_week.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_gengxinbang_week.addMouseListener(new MouseAdapter() {
	    	public void mouseClicked(MouseEvent e) {
	    		lb_gengxinbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟周榜1.png")));
	    		lb_gengxinbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜2.png")));
	    		lb_gengxinbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜3.png")));
	    		lb_gengxinbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜4.png")));
	    		lb_gengxinbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜5.png")));
	    		lb_gengxinbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜6.png")));
	    		lb_gengxinbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜7.png")));
	    		lb_gengxinbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜8.png")));
	    		lb_gengxinbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜9.png")));
	    		lb_gengxinbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜10.png"))); 
	    		lb_gengxinbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    		lb_gengxinbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_gengxinbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    
	    pl_gengxinbang_north.add(lb_gengxinbang_week);
	    
	    lb_gengxinbang_month = new JLabel();
	    lb_gengxinbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    lb_gengxinbang_month.setFont(font_two);
	    lb_gengxinbang_month.setBounds(350, 5, 50, 100);
	    lb_gengxinbang_month.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_gengxinbang_month.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_gengxinbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜1.png")));
	    		lb_gengxinbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜2.png")));
	    		lb_gengxinbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜3.png")));
	    		lb_gengxinbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜4.png")));
	    		lb_gengxinbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜5.png")));
	    		lb_gengxinbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新月榜6.png")));
	    		lb_gengxinbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新月榜7.png")));
	    		lb_gengxinbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新月榜8.png")));
	    		lb_gengxinbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新月榜9.png")));
	    		lb_gengxinbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新月榜10.png"))); 
	    		lb_gengxinbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_gengxinbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红月.png")));
	    		lb_gengxinbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    pl_gengxinbang_north.add(lb_gengxinbang_month);
	    
	    
	    lb_gengxinbang_all = new JLabel();
	    lb_gengxinbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    lb_gengxinbang_all.setFont(font_two);
	    lb_gengxinbang_all.setBounds(390, 5, 50, 100);
	    lb_gengxinbang_all.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_gengxinbang_all.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_gengxinbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新总榜1.png")));
	    		lb_gengxinbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新总榜2.png")));
	    		lb_gengxinbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新总榜3.png")));
	    		lb_gengxinbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜4.png")));
	    		lb_gengxinbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜5.png")));
	    		lb_gengxinbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜6.png")));
	    		lb_gengxinbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜7.png")));
	    		lb_gengxinbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜8.png")));
	    		lb_gengxinbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜9.png")));
	    		lb_gengxinbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新总榜10.png"))); 
	    		lb_gengxinbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_gengxinbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_gengxinbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    pl_gengxinbang_north.add(lb_gengxinbang_all);
	    
	    
	    //更新榜中部
	    pl_gengxinbang_center = new JPanel();
	    pl_gengxinbang.add(BorderLayout.CENTER,pl_gengxinbang_center);
	    
	    
	    pl_gengxinbang.setBackground(Color.white);
	    pl_gengxinbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_gengxinbang);
        
//        lb_dianjibang = 
        //周榜
        lb_gengxinbang1 = new JLabel();
        lb_gengxinbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜1.png")));
        lb_gengxinbang1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang1.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        //月榜
		 	
        //总榜
        lb_gengxinbang2 = new JLabel();
        lb_gengxinbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜2.png")));
        lb_gengxinbang2.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang2.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        lb_gengxinbang3 = new JLabel();
        lb_gengxinbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜3.png")));
        lb_gengxinbang3.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang3.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});
		
        lb_gengxinbang4 = new JLabel();
        lb_gengxinbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜4.png")));
        lb_gengxinbang4.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang4.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_gengxinbang5 = new JLabel();
        lb_gengxinbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜5.png")));
        lb_gengxinbang5.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang5.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_gengxinbang6 = new JLabel();
        lb_gengxinbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜6.png")));
        lb_gengxinbang6.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang6.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_gengxinbang7 = new JLabel();
        lb_gengxinbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜7.png")));
        lb_gengxinbang7.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang7.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_gengxinbang8 = new JLabel();
        lb_gengxinbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜8.png")));
        lb_gengxinbang8.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang8.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_gengxinbang9 = new JLabel();
        lb_gengxinbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/更新周榜9.png")));
        lb_gengxinbang9.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang9.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

        lb_gengxinbang10 = new JLabel();
        lb_gengxinbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/跟新周榜10.png")));
        lb_gengxinbang10.addMouseListener(new MouseAdapter() {
			@Override	
			public void mouseEntered(MouseEvent e) {
				lb_gengxinbang10.setCursor(new Cursor(Cursor.HAND_CURSOR));
			}
			@Override
			public void mouseClicked(MouseEvent e) {
			}
		});

		gbc.gridx=0;
		gbc.gridy=1;
		pl_gengxinbang_center.add(lb_gengxinbang1,gbc);
		gbc.gridx=0;
		gbc.gridy=2;
		pl_gengxinbang_center.add(lb_gengxinbang2,gbc);
		gbc.gridx=0;
		gbc.gridy=3;
		pl_gengxinbang_center.add(lb_gengxinbang3,gbc);
		gbc.gridx=0;
		gbc.gridy=4;
		pl_gengxinbang_center.add(lb_gengxinbang4,gbc);
		gbc.gridx=0;
		gbc.gridy=5;
		pl_gengxinbang_center.add(lb_gengxinbang5,gbc);
		gbc.gridx=0;
		gbc.gridy=6;
		pl_gengxinbang_center.add(lb_gengxinbang6,gbc);
		gbc.gridx=0;
		gbc.gridy=7;
		pl_gengxinbang_center.add(lb_gengxinbang7,gbc);
		gbc.gridx=0;
		gbc.gridy=8;
		pl_gengxinbang_center.add(lb_gengxinbang8,gbc);
		gbc.gridx=0;
		gbc.gridy=9;
		pl_gengxinbang_center.add(lb_gengxinbang9,gbc);
		gbc.gridx=0;
		gbc.gridy=10;
		pl_gengxinbang_center.add(lb_gengxinbang10,gbc);
      	
        //推荐榜
	    pl_tuijianbang=new JPanel();
	    pl_tuijianbang.setBorder(new LineBorder(Color.gray));
	    pl_tuijianbang.setBackground(Color .white);
	    pl_tuijianbang.setLayout(new BorderLayout());
	    pl_tuijianbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_tuijianbang);
//        lb_dianjibang_click = new JLabel("|推荐榜");
//	    lb_dianjibang_click.setFont(font_two);
//	    lb_dianjibang_click.setBounds(10, 25, 100, 100);
//	    pl_tuijianbang_north.add(lb_dianjibang_click);
	    
        pl_tuijianbang_north = new JPanel();
        pl_tuijianbang_north.setLayout(null);
        pl_tuijianbang_north.setBorder(new TitledBorder(""));
        pl_tuijianbang_north.setPreferredSize(new Dimension(0, 100));
        pl_tuijianbang.add(BorderLayout.NORTH,pl_tuijianbang_north);
	    
	    
	    
	    lb_dianjibang_click = new JLabel("|推荐榜");
	    lb_dianjibang_click.setFont(font_two);
	    lb_dianjibang_click.setBounds(10, 5, 100, 100);
	    pl_tuijianbang_north.add(lb_dianjibang_click);
	    
	    lb_tuijianbang_week = new JLabel();
	    lb_tuijianbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    lb_tuijianbang_week.setFont(font_two);
	    lb_tuijianbang_week.setBounds(310, 5, 50, 100);
	    lb_tuijianbang_week.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_tuijianbang_week.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_tuijianbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜1.png")));
	    		lb_tuijianbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜2.png")));
	    		lb_tuijianbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜3.png")));
	    		lb_tuijianbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜4.png")));
	    		lb_tuijianbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜5.png")));
	    		lb_tuijianbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜6.png")));
	    		lb_tuijianbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜7.png")));
	    		lb_tuijianbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜8.png")));
	    		lb_tuijianbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜9.png")));
	    		lb_tuijianbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜10.png")));  
	    		lb_tuijianbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红周.png")));
	    		lb_tuijianbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_tuijianbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    pl_tuijianbang_north.add(lb_tuijianbang_week);
	    
	    lb_tuijianbang_month = new JLabel();
	    lb_tuijianbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    lb_tuijianbang_month.setFont(font_two);
	    lb_tuijianbang_month.setBounds(350, 5, 50, 100);
	    lb_tuijianbang_month.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_tuijianbang_month.addMouseListener(new MouseAdapter() {
	    	public void mouseClicked(MouseEvent e) {
	    		lb_tuijianbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜1.png")));
	    		lb_tuijianbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月2.png")));
	    		lb_tuijianbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月3.png")));
	    		lb_tuijianbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月4.png")));
	    		lb_tuijianbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月5.png")));
	    		lb_tuijianbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月6.png")));
	    		lb_tuijianbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月7.png")));
	    		lb_tuijianbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月8.png")));
	    		lb_tuijianbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月9.png")));
	    		lb_tuijianbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜月10.png")));  
	    		lb_tuijianbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_tuijianbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红月.png")));
	    		lb_tuijianbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    pl_tuijianbang_north.add(lb_tuijianbang_month);
	    
	    
	    lb_tuijianbang_all = new JLabel();
	    lb_tuijianbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/总.png")));
	    lb_tuijianbang_all.setFont(font_two);
	    lb_tuijianbang_all.setBounds(390, 5, 50, 100);
	    lb_tuijianbang_all.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_tuijianbang_all.addMouseListener(new MouseAdapter() {
	    	
	    	public void mouseClicked(MouseEvent e) {
	    		lb_tuijianbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总1.png")));
	    		lb_tuijianbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总2.png")));
	    		lb_tuijianbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总3.png")));
	    		lb_tuijianbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总4.png")));
	    		lb_tuijianbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总5.png")));
	    		lb_tuijianbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总6.png")));
	    		lb_tuijianbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总7.png")));
	    		lb_tuijianbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总8.png")));
	    		lb_tuijianbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总9.png")));
	    		lb_tuijianbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜总10.png")));  
	    		lb_tuijianbang_week.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/周.png")));
	    		lb_tuijianbang_month.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/月.png")));
	    		lb_tuijianbang_all.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/红总.png")));
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.repaint();
	    		pl_dianjibang_center.updateUI();
	    	}
		});
	    
	    pl_tuijianbang_north.add(lb_tuijianbang_all);
	    
	    
	    //推荐榜中部
	    pl_tuijianbang_center = new JPanel();
	    pl_tuijianbang.add(BorderLayout.CENTER,pl_tuijianbang_center);
	    
	    
	    pl_tuijianbang.setBackground(Color.white);
	    pl_tuijianbang.setPreferredSize(new Dimension(270, 600));
        pl_paihang.add(pl_tuijianbang);
        
//        lb_dianjibang = 
  
        lb_tuijianbang1 = new JLabel();
        lb_tuijianbang1.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜1.png")));
		
		    
        lb_tuijianbang2 = new JLabel();
        lb_tuijianbang2.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜2.png")));
		
        lb_tuijianbang3 = new JLabel();
        lb_tuijianbang3.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜3.png")));
		
        lb_tuijianbang4 = new JLabel();
        lb_tuijianbang4.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜4.png")));

        lb_tuijianbang5 = new JLabel();
        lb_tuijianbang5.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜5.png")));

        lb_tuijianbang6 = new JLabel();
        lb_tuijianbang6.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜6.png")));

        lb_tuijianbang7 = new JLabel();
        lb_tuijianbang7.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜7.png")));

        lb_tuijianbang8 = new JLabel();
        lb_tuijianbang8.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜8.png")));

        lb_tuijianbang9 = new JLabel();
        lb_tuijianbang9.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜9.png")));

        lb_tuijianbang10 = new JLabel();
        lb_tuijianbang10.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/推荐榜10.png")));

		gbc.gridx=0;
		gbc.gridy=1;
		pl_tuijianbang_center.add(lb_tuijianbang1,gbc);
		gbc.gridx=0;
		gbc.gridy=2;
		pl_tuijianbang_center.add(lb_tuijianbang2,gbc);
		gbc.gridx=0;
		gbc.gridy=3;
		pl_tuijianbang_center.add(lb_tuijianbang3,gbc);
		gbc.gridx=0;
		gbc.gridy=4;
		pl_tuijianbang_center.add(lb_tuijianbang4,gbc);
		gbc.gridx=0;
		gbc.gridy=5;
		pl_tuijianbang_center.add(lb_tuijianbang5,gbc);
		gbc.gridx=0;
		gbc.gridy=6;
		pl_tuijianbang_center.add(lb_tuijianbang6,gbc);
		gbc.gridx=0;
		gbc.gridy=7;
		pl_tuijianbang_center.add(lb_tuijianbang7,gbc);
		gbc.gridx=0;
		gbc.gridy=8;
		pl_tuijianbang_center.add(lb_tuijianbang8,gbc);
		gbc.gridx=0;
		gbc.gridy=9;
		pl_tuijianbang_center.add(lb_tuijianbang9,gbc);
		gbc.gridx=0;
		gbc.gridy=10;
		pl_tuijianbang_center.add(lb_tuijianbang10,gbc);
        
        pl_center.add(BorderLayout.CENTER,pl_paihang);
        //================================================
        
        pl_south = new JPanel();
        pl_south.setPreferredSize(new Dimension(0, 500));
//        pl_south.setBorder(new TitledBorder(""));
        pl_All.add(BorderLayout.SOUTH,pl_south);
        
        lb_southimg = new JLabel();
        lb_southimg.setIcon(new ImageIcon(RankingFrame.class.getResource("./img/底层图片.png")));
        pl_south.add(lb_southimg);
        
        
        //===============================================
        
//		pl_center.setVisible(false);
		jf.setSize(ScreenWidth,ScreenHeight);//设置大小
		jf.setVisible(true);//设置可见
		jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);//设置可关闭
		jf.setLocationRelativeTo(null);//居中
	}
	//搜索方法
	public Book searchbook(String sql, Object ...params ) {
		Book book=null;
//		sql= "SELECT * FROM book WHERE bookname LIKE '%?%'";
//		Object paramsq="%巨鳄风暴%";
		
		try {
			book=baseDao.findBean(Book.class,sql,params);
//			System.out.println(book);
		} catch (Exception e) {
			e.printStackTrace();
		}finally {
			try {
				baseDao.CloseConnection();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return book;
	}
	public static void main(String[] args) {
//		FrameBeautify.setLookAndFeel("com.jtattoo.plaf.smart.SmartLookAndFeel");
		new RankingFrame("lgw", true);
	}

}
